package com.gzc.pm.ro;

import java.util.List;

import cn.skyclass.net.OperationResult;

import com.gzc.pm.bean.CollectionBean;
import com.gzc.pm.bean.EquipmentBean;
import com.gzc.pm.dao.CollectionDao;
import com.gzc.pm.dao.EquipmentDao;

public class CollectionRo {
	
	public List<CollectionBean> getInEquCodes(String equCodesStr, String sDateStr, String eDateStr){
		CollectionDao dao = new CollectionDao();
		return dao.getInEquCodes(equCodesStr, sDateStr, eDateStr);
	}
	
	public List<CollectionBean> getInEquId(int equId, String sDateStr, String eDateStr){
		CollectionDao dao = new CollectionDao();
		return dao.getInEquId(equId, sDateStr, eDateStr);
	}
	
	public List<CollectionBean> getInEquIds(String equCodesStr, String sDateStr, String eDateStr){
		CollectionDao dao = new CollectionDao();
		return dao.getInEquIds(equCodesStr, sDateStr, eDateStr);
	}
	
	
	//etc
	public List<CollectionBean> getInCpk(int procId, String sDateStr, String eDateStr){
		CollectionDao dao = new CollectionDao();
		EquipmentDao eDao = new EquipmentDao();
		List<EquipmentBean> eList = eDao.getEquInfoByPlId(procId);
		
		return dao.getInCpk(procId, sDateStr, eDateStr);
	}
	
	public OperationResult insert(CollectionBean bean){
		CollectionDao dao = new CollectionDao();
		return dao.insert(bean);
	}
}
